package com.wind.taobao.api.trade.trade.rest
{
	import com.wind.taobao.api.trade.trade.convert.RefundConvert;
	import com.wind.taobao.core.webservice.TaobaoListResponse;
	import com.wind.taobao.core.webservice.TaobaoResponse;

	import mx.collections.ArrayCollection;

	/**
	 * taobao.refunds.apply.get Response
	 * @author fxy
	 *
	 */
	public class RefundsApplyGetResponse extends TaobaoListResponse
	{
		public var refunds:ArrayCollection;

		public function RefundsApplyGetResponse(response:TaobaoResponse=null)
		{
			super(response);
			initRefunds();
		}

		private function initRefunds():void
		{
			if (body != null && this.isSuccess)
			{
				if (body["rsp"].hasOwnProperty("refunds"))
					refunds=RefundConvert.convertRefunds(body["rsp"]["refunds"]);
			}
		}

	}
}